package com.woniuxy.cloud52.cinemaassembly.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.cloud52.cinemaassembly.model.Seat;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

/**
 * <p>
 * 座位表 Mapper 接口
 * </p>
 *
 * @author rc
 * @since 2021-05-06
 */
public interface SeatMapper extends BaseMapper<Seat> {

    @Insert("insert into c_seat (mc_id,number,STATUS) value(#{mcId},#{number},#{status})")
    @Options(useGeneratedKeys=true, keyProperty="seatId", keyColumn="seat_id")
    int addSeat(Seat seat);
}
